<?php use_stylesheet('main.css') ?>
<?php use_helper('Text') ?>
<?php slot(
  'title',
  sprintf('TibzSymfony Blog '))
?>


<h1 align="center">A la une!</h1>


<span id="sl_play" class="sl_command">&nbsp;</span>
	<span id="sl_pause" class="sl_command">&nbsp;</span>
	<span id="sl_i1" class="sl_command sl_i">&nbsp;</span>
	<span id="sl_i2" class="sl_command sl_i">&nbsp;</span>
	<span id="sl_i3" class="sl_command sl_i">&nbsp;</span>
	<span id="sl_i4" class="sl_command sl_i">&nbsp;</span>

<section id="slideshow">
	
		<?php $i = 0; ?>
		
		<div class="container">
			<div class="c_slider"></div>
			<div class="slider">
				
			<?php foreach ($blog_covers as $blog_cover): 
			
			echo '<a href="'.url_for('show_articles', $blog_cover).'" target="_blank"><figure>
				<img src="/uploads/cover/'.$blog_cover->getCover().'" alt="" width="640" height="310" />
				<figcaption><h3>'.$blog_cover->getTitle().' </h3></figcaption>
			</figure></a>';
			 endforeach; ?>
				
				
			</div>
		</div>
		
		<span id="timeline"></span>
		
			
	</section>

<br/>


<?php include_partial('sfBlogArticles/articles', array('blog_categories' => $pager->getResults())) ?>
                                
         <?php if ($pager->haveToPaginate()): ?>                       

        <?php foreach ($pager->getLinks() as $page): ?>
      <?php if ($page == $pager->getPage()): ?>
        <?php echo $page ?>
      <?php else: ?>
        <a href="<?php echo url_for('articles', $blog_categories) ?>page=<?php echo $page ?>"><?php echo $page ?></a>
      <?php endif; ?>
    <?php endforeach; ?>
    <?php endif; ?>


  
